//
//  ContactPersonCell.m
//  timelyRain
//
//  Created by Jiafei Wei on 2016/12/22.
//  Copyright © 2016年 Jiafei Wei. All rights reserved.
//

#import "ContactPersonCell.h"

@implementation ContactPersonCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _pic.layer.masksToBounds=YES;
   _pic.layer.cornerRadius=_pic.frame.size.height/2;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

//创建自定义可重用的cell对象
+(instancetype)setContactPersonCellWithTableView:(UITableView *)tableView
{
    static NSString *reuseId = @"ContactPersonCell";
    ContactPersonCell *cell = [tableView dequeueReusableCellWithIdentifier:reuseId];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"ContactPersonCell" owner:nil options:nil] lastObject];
    }
    return cell;
}

@end
